﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleTaskManager.Domain.Entities;

namespace SimpleTaskManager.Domain.Abstract
{
    /// <summary>
    /// An interface for a repository containing the connector collection between the Users and Skills
    /// </summary>
    public interface IUser_SkillRepository
    {
        /// <summary>
        /// A collection representing a many-to-many relationship between Users and Skills
        /// </summary>
        IQueryable<User_Skill> User_Skills { get; }


        /// <summary>
        /// Deletes User_Skill (association between skill and user) from the repository
        /// </summary>
        /// <param name="id">id of User_Skill that should be deleted</param>
        void Delete(int id);

        /// <summary>
        /// Saves changes to edited User_Skill (association between skill and user) to the repository
        /// </summary>
        /// <param name="skill">edited User_Skill</param>
        void EditSkill(User_Skill skill);
    }
}
